//
//  DiscoverViewController.m
//  QuickCare
//
//  Created by 唐润欣 on 16/7/11.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import "DiscoverViewController.h"
#import "KytableView.h"
#import "KytableViewCell.h"
#import "TransitionViewController.h"

//@interface DiscoverViewController ()
//
//@property (nonatomic, strong)KytableViewCell *cell;
//
//@end

@implementation DiscoverViewController

-(void)viewDidLoad{
    
    [super viewDidLoad];
    
    self.tableView.rowHeight = 80;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 1;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    static NSString *identifier = @"cell";
    
    KytableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    
    cell.icon.image = [UIImage imageNamed:@"book_94.659966499162px_1200914_easyicon.net"];
    cell.topTitle.text = @"健康小卡片";
    cell.topTitle.font = [UIFont systemFontOfSize:17];
    
    cell.bottomTitle.text = @"如何活出健康人生?";
    cell.bottomTitle.font = [UIFont systemFontOfSize:16];
    cell.bottomTitle.textColor = [UIColor grayColor];
    
    cell.rightTitle.text = @"昨天";
    cell.rightTitle.font = [UIFont systemFontOfSize:15];
    cell.rightTitle.textColor = [UIColor grayColor];
    
    return cell;
}

//-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//    
//    TransitionViewController *transitionView = [[TransitionViewController alloc]init];
//    [self.navigationController pushViewController:transitionView animated:NO];
//}

@end
